/* ============================================
   HSO Corporate – Styles
   Sage #c1cbb8 | Cobalt #2933ba | Shark #252c37
   ============================================ */

:root {
  --sage:        #c1cbb8;
  --sage-20:     rgba(193, 203, 184, 0.2);
  --sage-40:     rgba(193, 203, 184, 0.4);
  --cobalt:      #2933ba;
  --cobalt-10:   rgba(41, 51, 186, 0.1);
  --cobalt-20:   rgba(41, 51, 186, 0.2);
  --shark:       #252c37;
  --shark-60:    rgba(37, 44, 55, 0.6);
  --shark-15:    rgba(37, 44, 55, 0.15);
  --shark-08:    rgba(37, 44, 55, 0.08);
  --white:       #ffffff;
  --off-white:   #f8f6f3;
}





/* ============================================
   Shared helpers
   ============================================ */

.corp-label {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 0.75rem;
}

.corp-section-headline {
  font-family: 'Geared Slab', 'Roboto Slab', Georgia, serif;
  font-size: clamp(1.75rem, 2.5vw + 0.75rem, 2.75rem);
  font-weight: 800;
  color: var(--shark);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.corp-section-intro {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: var(--shark-60);
  line-height: 1.7;
  max-width: 560px;
}

.corp-section-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.btn--ghost {
  background: none;
  border: none;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--shark-60);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
  text-decoration: none;
}
.btn--ghost:hover { color: var(--cobalt); }

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
[data-reveal].revealed { opacity: 1; transform: none; }

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1), transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
[data-reveal-stagger].revealed > * { opacity: 1; transform: none; }
[data-reveal-stagger].revealed > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].revealed > *:nth-child(2) { transition-delay: 90ms; }
[data-reveal-stagger].revealed > *:nth-child(3) { transition-delay: 180ms; }
[data-reveal-stagger].revealed > *:nth-child(4) { transition-delay: 270ms; }
[data-reveal-stagger].revealed > *:nth-child(5) { transition-delay: 360ms; }
[data-reveal-stagger].revealed > *:nth-child(6) { transition-delay: 450ms; }


/* ============================================
   HERO  (fullscreen image – Retreat-style)
   ============================================ */

.corp-hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

/* ---- Background image ---- */
.corp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.corp-hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.corp-hero:hover .corp-hero__bg-image {
  transform: scale(1.02);
}

/* Dark gradient overlay – Shark-based */
.corp-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(37, 44, 55, 0.2)  0%,
      rgba(37, 44, 55, 0.55) 40%,
      rgba(37, 44, 55, 0.88) 100%
    );
}

/* Sage glow accent top-right */
.corp-hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 55% at 65% 15%,
    rgba(193, 203, 184, 0.15) 0%,
    transparent 65%
  );
}

/* Subtle warm tint bottom-left */
.corp-hero__overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 50% 60% at 10% 90%,
    rgba(193, 203, 184, 0.06) 0%,
    transparent 70%
  );
}

/* ---- Particles ---- */
.corp-hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.corp-hero__particle {
  position: absolute;
  border-radius: 50%;
  background: var(--sage);
  animation: corpFloat var(--duration, 10s) var(--delay, 0s) ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes corpFloat {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(var(--tx, 50px), var(--ty, -50px)); }
}

/* ---- Content ---- */
.corp-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 0 clamp(2rem, 4vw, 4rem);
  width: 100%;
  height: 100%;
  padding-inline: clamp(2rem, 5vw, 6rem);
}

/* ---- Left column ---- */
.corp-hero__left {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  display: flex;
  flex-direction: column;
}

.corp-hero__line {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.25rem;
  border-radius: 2px;
  transform-origin: left;
  animation: hero-line-in 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.corp-hero__desc {
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.85rem, 1vw + 0.3rem, 1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 340px;
  margin-bottom: 1.5rem;
}

.corp-hero__headline {
  font-family: 'Geared Slab', 'Roboto Slab', Georgia, serif;
  font-size: clamp(2.5rem, 4.5vw + 0.5rem, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
  letter-spacing: -0.025em;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  text-align: right;
}

/* em = Sage accent */
.corp-hero__headline em {
  font-family: 'Thirsty Rough', Georgia, serif;
  font-style: normal;
  font-weight: 700;
  color: var(--sage);
  position: relative;
  display: inline-block;
}

/* Animated Sage underline */
.corp-hero__headline em::after {
  content: '';
  position: absolute;
  bottom: 0.04em;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sage);
  opacity: 0.55;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1) 1s;
}

.corp-hero__headline em.revealed-em::after {
  transform: scaleX(1);
}


/* ---- CTA Buttons ---- */
.corp-hero__actions {
  display: flex !important;
  flex-direction: row !important;
  gap: 1rem;
  align-items: center;
}

/* Primary: Sage fill, Shark text */
.corp-hero__actions .btn--primary {
  background: var(--sage);
  color: var(--shark);
  border: none;
  font-weight: 700;
}

.corp-hero__actions .btn--primary:hover {
  background: #d2dbc9;
  box-shadow: 0 8px 32px rgba(193, 203, 184, 0.45);
  transform: translateY(-2px);
}

/* Outline: neutral white border */
.btn--hero-outline {
  color: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--hero-outline:hover {
  background: var(--shark);
  border-color: var(--shark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 44, 55, 0.4);
}

/* ---- Scroll indicator ---- */
.corp-hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  right: clamp(1.5rem, 4vw, 3.5rem);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.corp-hero__scroll:hover { opacity: 1; }

.corp-hero__scroll-line {
  width: 1px;
  height: 65px;
  background: linear-gradient(to bottom, transparent, var(--sage));
  animation: corpScrollPulse 2.5s ease-in-out infinite;
}

@keyframes corpScrollPulse {
  0%, 100% { transform: scaleY(1);   opacity: 0.5; }
  50%       { transform: scaleY(0.6); opacity: 1;   }
}

/* ---- Hero staggered reveal delays ---- */
.corp-hero .corp-hero__headline[data-reveal] { transition-delay: 260ms; }
.corp-hero .corp-hero__subtitle[data-reveal] { transition-delay: 460ms; }
.corp-hero .corp-hero__actions[data-reveal]  { transition-delay: 660ms; }


/* ============================================
   ÜBERBLICK (dark band)
   ============================================ */

.corp-ueberblick {
  background: var(--shark);
  padding-block: clamp(2rem, 4vw, 3rem);
}

.corp-ueberblick__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  justify-content: center;
}

.corp-ueberblick .corp-label {
  color: var(--sage);
  white-space: nowrap;
  flex-shrink: 0;
  margin-bottom: 0;
}

.corp-ueberblick__text {
  font-family: 'Lato', sans-serif;
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.2rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  max-width: 640px;
}


/* ============================================
   GEWERBEIMMOBILIEN BRAUCHEN STRUKTUR
   ============================================ */

.corp-struktur {
  background: var(--white);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.corp-struktur__layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

/* Sticky left column while right scrolls */
.corp-struktur__left {
  position: sticky;
  top: 100px;
}

.corp-struktur__headline {
  font-family: 'Geared Slab', 'Roboto Slab', Georgia, serif;
  font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.5rem);
  font-weight: 800;
  color: var(--shark);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.corp-struktur__text {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--shark-60);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.corp-struktur__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.corp-struktur__actions .btn--primary {
  background: var(--cobalt);
  color: var(--white);
  border: 2px solid var(--cobalt);
  font-weight: 700;
}
.corp-struktur__actions .btn--primary:hover {
  background: #1f2699;
  border-color: #1f2699;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(41, 51, 186, 0.35);
}

/* Right: stacked items with dividers */
.corp-struktur__right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.corp-struktur-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--shark-08);
}
.corp-struktur-item:first-child { padding-top: 0; }
.corp-struktur-item:last-child { border-bottom: none; }

.corp-struktur-item__image {
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  background: #d8d8d8;
  position: relative;
}

.corp-struktur-item__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  position: relative; z-index: 1;
}

/* placeholder gradient */
.corp-struktur-item__image::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #e0e0e0, #c8c8c8);
  z-index: 0;
}

.corp-struktur-item__title {
  font-family: 'Lato', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--shark);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.corp-struktur-item__text {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  color: var(--shark-60);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .corp-struktur__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .corp-struktur__left { position: static; }
}

@media (max-width: 640px) {
  .corp-struktur-item { grid-template-columns: 1fr; gap: 1rem; }
}


/* ============================================
   LEISTUNGEN
   ============================================ */

.corp-leistungen {
  background: var(--white);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.corp-leistungen__header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.corp-leistungen__header .corp-section-intro { margin-inline: auto; }

.corp-leistungen__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg, 2rem);
}

.corp-leistung-card {
  padding: 2rem 1.5rem;
  border-radius: 12px;
  background: var(--off-white);
  border: 1px solid var(--shark-08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.corp-leistung-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37,44,55,0.09);
  border-color: transparent;
}

.corp-leistung-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--sage-20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cobalt);
  margin-bottom: 1.1rem;
  transition: background 0.25s;
}
.corp-leistung-card:hover .corp-leistung-card__icon { background: var(--sage-40); }
.corp-leistung-card__icon svg { width: 22px; height: 22px; }

.corp-leistung-card__title {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--shark);
  margin-bottom: 0.55rem;
  line-height: 1.35;
}

.corp-leistung-card__text {
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  color: var(--shark-60);
  line-height: 1.7;
}


/* ============================================
   BRANCHEN
   ============================================ */

.corp-branchen {
  background: var(--off-white);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.corp-branchen__header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.corp-branchen__header .corp-section-intro { margin-inline: auto; }

.corp-branchen__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.corp-branchen-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--shark-08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.corp-branchen-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37,44,55,0.09);
}

.corp-branchen-card__image {
  aspect-ratio: 16/9;
  background: #d8d8d8;
  overflow: hidden;
  position: relative;
}

.corp-branchen-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.corp-branchen-card:hover .corp-branchen-card__image img { transform: scale(1.04); }

/* Fallback placeholder if image missing */
.corp-branchen-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e0e0e0 0%, #c8c8c8 100%);
  z-index: 0;
}
.corp-branchen-card__image img { position: relative; z-index: 1; }

.corp-branchen-card__title {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--shark);
  padding: 1rem 1.25rem 0.4rem;
  line-height: 1.35;
}

.corp-branchen-card__text {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  color: var(--shark-60);
  line-height: 1.65;
  padding: 0 1.25rem 1.25rem;
}


/* ============================================
   VORGEHEN / ABLAUF – Sticky Scroll Timeline
   ============================================ */

.corp-vorgehen-wrap {
  position: relative;
  height: 250vh;
}

.corp-vorgehen-spacer {
  height: 5vh;
}

.corp-vorgehen__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  background: var(--white);
  z-index: 1;
}

.corp-vorgehen__sticky > .container {
  width: 100%;
}

.corp-vorgehen__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.corp-vorgehen__headline {
  font-family: 'Geared Slab', 'Roboto Slab', Georgia, serif;
  font-size: clamp(2rem, 3vw + 0.5rem, 3rem);
  font-weight: 800;
  color: var(--shark);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-top: 0.5rem;
}

.corp-vorgehen__intro-text {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--shark-60);
  line-height: 1.75;
}

/* ---- Timeline ---- */
.corp-timeline {
  padding-bottom: 3.5rem;
}

.corp-timeline__track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 32px;
}

.corp-timeline__line {
  position: absolute;
  top: 56px;
  left: 28px;
  right: 28px;
  height: 3px;
  background: var(--shark-08);
  border-radius: 2px;
  overflow: hidden;
}

.corp-timeline__line-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--cobalt));
  border-radius: 2px;
  will-change: width;
}

.corp-timeline__node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 200px;
  z-index: 1;
  opacity: 0;
  transform: translateY(16px) scale(0.92);
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.corp-timeline__node.tl-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.corp-timeline__dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--shark-08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.25s ease, background 0.3s ease, color 0.3s ease;
  position: relative;
  z-index: 2;
  cursor: default;
  color: var(--shark-60);
}

.corp-timeline__dot svg {
  width: 22px;
  height: 22px;
}

.corp-timeline__node.tl-visible .corp-timeline__dot {
  border-color: var(--sage);
  box-shadow: 0 0 0 6px var(--sage-20);
  color: var(--cobalt);
}

.corp-timeline__node:hover .corp-timeline__dot {
  transform: scale(1.12);
  border-color: var(--cobalt);
  background: var(--cobalt);
  color: var(--white);
  box-shadow: 0 0 0 8px var(--cobalt-20), 0 6px 20px rgba(41,51,186,0.15);
}

.corp-timeline__label {
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--shark);
  text-align: center;
  line-height: 1.35;
  transition: color 0.25s;
}

.corp-timeline__node:hover .corp-timeline__label {
  color: var(--cobalt);
}

.corp-timeline__detail {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 190px;
  text-align: center;
  pointer-events: none;
  padding-top: 0.5rem;
}

.corp-timeline__detail > p {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  color: var(--shark-60);
  line-height: 1.65;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.corp-timeline__node:hover .corp-timeline__detail > p {
  opacity: 1;
  transform: translateY(0);
}



/* ============================================
   KOMPETENZ
   ============================================ */

.corp-kompetenz {
  background: var(--off-white);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.corp-kompetenz__header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.corp-kompetenz__header .corp-section-intro { margin-inline: auto; }

.corp-kompetenz__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.corp-kompetenz__features-left,
.corp-kompetenz__features-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.corp-feature {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.4rem 1.35rem;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--shark-08);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: default;
}

.corp-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,44,55,0.09);
  border-color: transparent;
}

.corp-feature__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.corp-feature__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--sage-20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cobalt);
  transition: background 0.25s, color 0.25s;
}
.corp-feature:hover .corp-feature__icon {
  background: var(--cobalt);
  color: var(--white);
}
.corp-feature__icon svg { width: 17px; height: 17px; }

.corp-feature__title {
  font-family: 'Lato', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--shark);
  line-height: 1.3;
}

.corp-feature__text {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  color: var(--shark-60);
  line-height: 1.65;
  padding-left: calc(36px + 0.75rem); /* aligns under title */
}

/* Rotating ring wrapper */
.corp-kompetenz__image-wrap {
  position: relative;
  padding: 5px;
  border-radius: 20px;
  background: conic-gradient(
    from var(--angle, 0deg),
    var(--sage)    0deg,
    var(--cobalt)  120deg,
    var(--sage)    240deg,
    transparent    300deg,
    var(--sage)    360deg
  );
  animation: rotateBorder 5s linear infinite;
  flex-shrink: 0;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes rotateBorder {
  to { --angle: 360deg; }
}

/* Subtle pulse on the glow */
.corp-kompetenz__image-wrap::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 24px;
  background: conic-gradient(
    from var(--angle, 0deg),
    rgba(193,203,184,0.25) 0deg,
    rgba(41,51,186,0.15)   120deg,
    transparent            240deg,
    transparent            360deg
  );
  filter: blur(12px);
  z-index: -1;
  animation: rotateBorder 5s linear infinite;
}

.corp-kompetenz__image {
  aspect-ratio: 3/4;
  border-radius: 16px;
  overflow: hidden;
  background: #d0d0d0;
  position: relative;
}

.corp-kompetenz__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

/* Placeholder gradient */
.corp-kompetenz__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #e0e0e0 0%, #c4c4c4 100%);
  z-index: 0;
}


/* ============================================
   VERTRAUEN / TESTIMONIALS
   ============================================ */

.corp-vertrauen {
  background: var(--white);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.corp-vertrauen__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.corp-vertrauen__headline {
  font-family: 'Geared Slab', 'Roboto Slab', Georgia, serif;
  font-size: clamp(2rem, 3vw + 0.5rem, 3rem);
  font-weight: 800;
  color: var(--shark);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.corp-vertrauen__sub {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--shark-60);
}

.corp-vertrauen__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.corp-testimonial {
  padding: 2rem 1.75rem;
  border-radius: 12px;
  background: var(--off-white);
  border: 1px solid var(--shark-08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.corp-testimonial:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(37,44,55,0.09);
}

.corp-testimonial__logo {
  margin-bottom: 1.25rem;
  color: var(--shark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.corp-testimonial__logo::before {
  content: '';
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--sage-40);
  display: block;
}

.corp-testimonial__quote {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--shark);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.corp-testimonial__name {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--shark);
}

.corp-testimonial__role {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  color: var(--shark-60);
  margin-top: 0.15rem;
}


/* ============================================
   FAQ
   ============================================ */

.corp-faq {
  background: var(--off-white);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.corp-faq > .container {
  max-width: 700px;
}

.corp-faq__header {
  margin-bottom: 2.5rem;
}

.corp-faq__headline {
  font-family: 'Geared Slab', 'Roboto Slab', Georgia, serif;
  font-size: clamp(2rem, 3vw + 0.5rem, 3rem);
  font-weight: 800;
  color: var(--shark);
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.corp-faq__intro {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--shark-60);
}

.corp-faq__list {
  border-top: 1px solid var(--shark-15);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.faq-item {
  border-bottom: 1px solid var(--shark-15);
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-item__trigger span {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--shark);
  transition: color 0.2s;
  line-height: 1.4;
}

.faq-item__trigger:hover span { color: var(--cobalt); }

.faq-item__icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--shark-60);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), color 0.2s;
}
.faq-item--open .faq-item__icon { transform: rotate(45deg); color: var(--cobalt); }
.faq-item--open .faq-item__trigger span { color: var(--cobalt); }

.faq-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.faq-item--open .faq-item__body { grid-template-rows: 1fr; }

.faq-item__body > p {
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  color: var(--shark-60);
  line-height: 1.75;
  transition: padding-bottom 0.38s cubic-bezier(0.4,0,0.2,1);
}
.faq-item--open .faq-item__body > p { padding-bottom: 1.25rem; }

.corp-faq__cta {
  text-align: center;
  padding: 2.5rem;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--shark-08);
}

.corp-faq__cta-title {
  font-family: 'Geared Slab', 'Roboto Slab', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--shark);
  margin-bottom: 0.4rem;
}

.corp-faq__cta-text {
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  color: var(--shark-60);
  margin-bottom: 1.25rem;
}

.corp-faq__cta .btn--primary {
  background: var(--shark);
  color: var(--white);
  border: 2px solid var(--shark);
}
.corp-faq__cta .btn--primary:hover {
  background: #1a2030;
  border-color: #1a2030;
  transform: translateY(-2px);
}


/* ============================================
   CLOSING CTA
   ============================================ */

.corp-closing {
  position: relative;
  padding-block: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

/* Background image */
.corp-closing__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.corp-closing__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Dark overlay */
.corp-closing__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(25, 35, 65, 0.88) 0%,
      rgba(37, 44, 55, 0.75) 50%,
      rgba(37, 44, 55, 0.65) 100%
    );
}

/* Sage glow accent */
.corp-closing__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 20% 60%,
    rgba(193, 203, 184, 0.06) 0%,
    transparent 70%
  );
}

.corp-closing__inner {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: none;
  margin-inline: 0;
}

/* Label with animated line */
.corp-closing__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2rem;
}

.corp-closing__line {
  display: block;
  width: 3rem;
  height: 1px;
  background: rgba(255,255,255,0.4);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.corp-closing__label.revealed .corp-closing__line {
  width: 5rem;
}

/* Giant headline — word-by-word reveal */
.corp-closing__headline {
  font-family: 'Geared Slab', 'Roboto Slab', Georgia, serif;
  font-size: clamp(3rem, 6vw + 1rem, 6.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0;
  text-shadow: 0 4px 40px rgba(0,0,0,0.3);
  max-width: 900px;
  overflow: hidden;
}

.corp-closing__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.corp-closing__headline.closing-revealed .corp-closing__word {
  opacity: 1;
  transform: translateY(0);
}

.corp-closing__headline.closing-revealed .corp-closing__word:nth-child(1) { transition-delay: 0ms; }
.corp-closing__headline.closing-revealed .corp-closing__word:nth-child(2) { transition-delay: 80ms; }
.corp-closing__headline.closing-revealed .corp-closing__word:nth-child(3) { transition-delay: 160ms; }
.corp-closing__headline.closing-revealed .corp-closing__word:nth-child(4) { transition-delay: 240ms; }
.corp-closing__headline.closing-revealed .corp-closing__word:nth-child(5) { transition-delay: 320ms; }
.corp-closing__headline.closing-revealed .corp-closing__word:nth-child(6) { transition-delay: 400ms; }

/* Bottom block — offset to the right */
.corp-closing__bottom {
  margin-left: auto;
  margin-right: 0;
  max-width: 440px;
  padding-top: 2.5rem;
}

/* Animated divider line */
.corp-closing__divider {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.5), transparent);
  margin-bottom: 2rem;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.corp-closing__bottom.revealed .corp-closing__divider {
  width: 100%;
}

.corp-closing__text {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.15);
}

.corp-closing__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn--primary-cobalt {
  background: var(--sage);
  color: var(--shark);
  border: 2px solid var(--sage);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}
.btn--primary-cobalt:hover {
  background: #a8b49e;
  border-color: #a8b49e;
  box-shadow: 0 8px 32px rgba(193, 203, 184, 0.4);
  transform: translateY(-2px);
}

.btn--outline-white {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 2px solid rgba(255,255,255,0.3);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}
.btn--outline-white:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.1);
  color: #fff;
  transform: translateY(-2px);
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
  .corp-kompetenz__layout { grid-template-columns: 1fr 1.2fr 1fr; gap: 1.75rem; }
}

@media (max-width: 1024px) {
  .corp-leistungen__grid { grid-template-columns: repeat(2, 1fr); }
  .corp-vorgehen__intro { grid-template-columns: 1fr; gap: 1rem; }
  .corp-kompetenz__layout {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin-inline: auto;
  }
  .corp-kompetenz__image-wrap { order: -1; max-height: 300px; aspect-ratio: 16/9; }
  .corp-kompetenz__features-left,
  .corp-kompetenz__features-right { gap: 1.75rem; }
  .corp-vertrauen__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

@media (max-width: 768px) {
  .corp-hero__content { grid-template-columns: 1fr; padding-inline: var(--container-padding, 1.25rem); }
  .corp-hero__left,
  .corp-hero__headline { grid-column: 1; grid-row: auto; text-align: left; justify-self: start; }
  .corp-hero__headline { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .corp-hero__actions { flex-direction: column; width: 100%; }
  .corp-hero__actions .btn { width: 100%; justify-content: center; text-align: center; }
  .corp-hero__scroll { display: none; }
  .corp-ueberblick__inner { flex-direction: column; gap: 0.75rem; text-align: center; }
  .corp-leistungen__grid { grid-template-columns: 1fr; }
  .corp-branchen__grid { grid-template-columns: 1fr; }
  .corp-vorgehen-wrap { height: auto; }
  .corp-vorgehen-spacer { display: none; }
  .corp-vorgehen__sticky { position: relative; height: auto; padding-block: clamp(4rem, 8vw, 7rem); }
  .corp-vorgehen__intro { grid-template-columns: 1fr; gap: 1rem; }
  .corp-timeline__track { flex-direction: column; align-items: flex-start; padding-top: 0; }
  .corp-timeline__line { top: 0; bottom: 0; left: 25px; right: auto; width: 3px; height: 100%; }
  .corp-timeline__line-fill { width: 100% !important; height: 100%; background: linear-gradient(180deg, var(--sage), var(--cobalt)); }
  .corp-timeline__node { flex-direction: row; align-items: flex-start; max-width: 100%; gap: 1rem; padding: 1.25rem 0; opacity: 1; transform: none; }
  .corp-timeline__dot { flex-shrink: 0; margin-bottom: 0; border-color: var(--sage); box-shadow: 0 0 0 4px var(--sage-20); color: var(--cobalt); }
  .corp-timeline__label { text-align: left; }
  .corp-timeline__detail { position: static; transform: none; width: auto; text-align: left; padding-top: 0.25rem; }
  .corp-timeline__detail > p { opacity: 1; transform: none; }
  .corp-section-actions { flex-direction: column; align-items: flex-start; }
  .corp-closing { min-height: auto; }
  .corp-closing__headline { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .corp-closing__bottom { max-width: 100%; margin-left: 0; }
  .corp-closing__actions { flex-direction: column; }
  .corp-closing__actions .btn { width: 100%; justify-content: center; }
  .corp-faq > .container { margin-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-stagger] > * {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .corp-hero__bg-image { transition: none; }
  .corp-hero__scroll-line { animation: none; }
  .corp-hero__particle { animation: none; }
  .corp-vorgehen-wrap { height: auto; }
  .corp-vorgehen-spacer { display: none; }
  .corp-vorgehen__sticky { position: relative; height: auto; padding-block: clamp(4rem, 8vw, 7rem); }
  .corp-timeline__node { opacity: 1; transform: none; }
  .corp-timeline__line-fill { width: 100% !important; }
}